
export const Dict = {
  data(){
    return {
      orderStatusL:[
        {key:0,val:'进行中'},
        {key:1,val:'已发货，待客户确认'},
        {key:2,val:'已交货，申请发货'},
        {key:3,val:'可申请结算'},
        {key:4,val:'订单不满意退款'},
        //{key:5,val:'已结算'},
        {key:6,val:'待抢单'},
      ],
      orderStatusSetect:[
        {key:0,val:'进行中'},
        {key:1,val:'已发货，待客户确认'},
        {key:2,val:'已交货，申请发货'},
        {key:3,val:'可申请结算'},
        {key:4,val:'订单不满意退款'},
        {key:5,val:'已结算'},
        {key:6,val:'待抢单'},
      ],
      orderTypes:[
        {key:0,val:'指派订单'},
        {key:1,val:'在线抢单'},
      ],
      managerCloses:[
        {key:0,val:'未结算'},
        {key:1,val:'已结算'},
      ],
      grabTypes:[
        {key:1,val:'代写文章'},
        {key:2,val:'ppt制作'},
        {key:3,val:'CAD'},
        {key:4,val:'商业计划书'},
        {key:5,val:'文章翻译'},
      ],
      roleStrMapDic:{
        'admin':'totalTakeMoney',
        'manager':'totalCost',
        'visitor':'totalCost',
        'regulator':'totalTakeMoney',
      }

    }
  },
  methods:{
    simplifyNumber(Num){
      Num=Number(Num);
      if(Number(Num)>1000){
        Num=(Num/1000)+"K";
      }
      return Num;
    },
    getColor(record){
      let type='success';
      switch (record.orderStatus){
        case 0:
          type='orange';
          break;
        case 1:
          type='cyan';
          break;
        case 2:
          type='blue';
          break;
        case 3:
          type='pink';
          break;
        case 4:
          type='#c0c0c0';
          break;
        case 5:
          type='green';
          break;
        case 6:
          type='red';
          break;
      }
      return type;
    },
  }
}